-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Deploy to mainnet #1305
Deploy to mainnet #1305
Conversation
unify extra info (working)
* add download csv (working) * fixed bug for download * refactor address_transactions_controller.rb#download_csv, improved udts_controller.rb * udt save as csv done * improved code * working on nft-transfers * added unit test for: api/v2/nft/transfers_controller#show * added unit test for: api/v2/nft/transfers_controller#index * finished download csv for /api/v2/nft/transfers_controller * add unit test for blocks#download_csv
* testing (cherry picked from commit e691165) * test pulling new transaction from websocket (cherry picked from commit 511d47f) * refactoring * process pending transaction * add commit block actions * add proc * using ckb_transactions not pool transaction entry * fix * select pending and rejected from ckb_transactions table * create placeholder cell input * fix * add previous_index * fix * fix * fix * skip nil for caching * add unit test for import transaction * fix unit test * remove PoolTransactionEntry * Apply suggestions from code review Co-authored-by: Miles Zhang <[email protected]> * update database structure --------- Co-authored-by: Miles Zhang <[email protected]>
* added sort to address transactions * added sort to block list * added index to blocks.reward * added sort to transactions, added index * added sort to pending transactions * added sort to udts * added sort to nfts ( token_collections ) and filter * added filter to udt_transactions * added filter to dao transactions * fixed filter bug for blocks, udts, pending tx * finished: sorting in blocks api * finished: sorting in tx api * finished: sorting in pending_tx api * finished: sorting in udts api * finished: sorting in /api/v1/address_transactions/[:id] api * fixed failed unit test of: app/controllers/api/v2/nft/collections_controller.rb * fixed failt unit test for: controllers/api/v1/block_transactions_controller * remove useless index * added more columns to sort * fixed failed unit test, for api/v1/ckb_transactions * used order(order_by => asc_or_desc) * improved code, used split(., 2) * fixed failed unit tests
* sort nft collections by hot * improved code * used lib/scheduler instead of config/schedule.yml
* feat: create address block snapshot model Signed-off-by: Miles Zhang <[email protected]> * feat: rollback address info use address_block_snapshots data Signed-off-by: Miles Zhang <[email protected]> * test: fix test Signed-off-by: Miles Zhang <[email protected]> * feat: save address final_state as jsonb type Signed-off-by: Miles Zhang <[email protected]> --------- Signed-off-by: Miles Zhang <[email protected]>
* feat: reduce ckb transactions export as csv n+1 querys * test: address transactions download csv * chore: adjust factory block generation with milliseconds timestamp * chore: remove comment * feat: add export address transactions job * chore: remove Rails.cache.realize
* fix: update cota sync data * chore: adjust tests
Co-authored-by: Miles Zhang <[email protected]> Co-authored-by: Chen Yu <[email protected]> Co-authored-by: iamyates <[email protected]> Co-authored-by: ShiningRay <[email protected]> Co-authored-by: 代码之力 <[email protected]> Co-authored-by: NanZhang <[email protected]> fix memory leak in udt transaction count (#1302) fix: update cota sync data (#1303) fix: rectify the cout error in the progress bar (#1304)
Conflicted |
add tx_committed filter for transaction list
* move data from cell_outputs to cell_datum * fix cell data import in node data processing * fix * fix test
fix: cell output cota info
Co-authored-by: Miles Zhang <[email protected]> Co-authored-by: Chen Yu <[email protected]> Co-authored-by: iamyates <[email protected]> Co-authored-by: ShiningRay <[email protected]> Co-authored-by: 代码之力 <[email protected]> Co-authored-by: NanZhang <[email protected]> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* Deploy to testnet (#1291) Co-authored-by: Miles Zhang <[email protected]> Co-authored-by: Chen Yu <[email protected]> Co-authored-by: iamyates <[email protected]> Co-authored-by: ShiningRay <[email protected]> Co-authored-by: 代码之力 <[email protected]> Co-authored-by: NanZhang <[email protected]> fix memory leak in udt transaction count (#1302) fix: update cota sync data (#1303) fix: rectify the cout error in the progress bar (#1304) * add tx_committed filter for transaction list * Optimize block query performance (#1307) * fix: cell output cota info --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Miles Zhang <[email protected]> Co-authored-by: Chen Yu <[email protected]> Co-authored-by: iamyates <[email protected]> Co-authored-by: ShiningRay <[email protected]> Co-authored-by: 代码之力 <[email protected]>
Fix transaction is always shown as pending
…sort fix: block transactions sort order by id asc
* refactor: backend epoch statistics * chore: fix typo * chore: adjust test
* Deploy to testnet (#1291) Co-authored-by: Miles Zhang <[email protected]> Co-authored-by: Chen Yu <[email protected]> Co-authored-by: iamyates <[email protected]> Co-authored-by: ShiningRay <[email protected]> Co-authored-by: 代码之力 <[email protected]> Co-authored-by: NanZhang <[email protected]> fix memory leak in udt transaction count (#1302) fix: update cota sync data (#1303) fix: rectify the cout error in the progress bar (#1304) * add tx_committed filter for transaction list * Optimize block query performance (#1307) * fix: cell output cota info * remove duplicated ckb transactions * fix: block transactions sort order by id asc * fix * fill missing cell output data * fix dao events tests * batch insert cell data * optimize cell input index filling * fix test * remove duplicate code * fix test --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Miles Zhang <[email protected]> Co-authored-by: Chen Yu <[email protected]> Co-authored-by: iamyates <[email protected]> Co-authored-by: NanZhang <[email protected]>
* Deploy to testnet (#1291) Co-authored-by: Miles Zhang <[email protected]> Co-authored-by: Chen Yu <[email protected]> Co-authored-by: iamyates <[email protected]> Co-authored-by: ShiningRay <[email protected]> Co-authored-by: 代码之力 <[email protected]> Co-authored-by: NanZhang <[email protected]> fix memory leak in udt transaction count (#1302) fix: update cota sync data (#1303) fix: rectify the cout error in the progress bar (#1304) * add tx_committed filter for transaction list * Optimize block query performance (#1307) * fix: cell output cota info * remove duplicated ckb transactions * fix: block transactions sort order by id asc --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Miles Zhang <[email protected]> Co-authored-by: Chen Yu <[email protected]> Co-authored-by: iamyates <[email protected]> Co-authored-by: ShiningRay <[email protected]> Co-authored-by: 代码之力 <[email protected]>
Signed-off-by: Miles Zhang <[email protected]>
Deploy to testnet
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## master #1305 +/- ##
==========================================
+ Coverage 59.49% 66.12% +6.63%
==========================================
Files 257 272 +15
Lines 7572 7336 -236
==========================================
+ Hits 4505 4851 +346
+ Misses 3067 2485 -582
☔ View full report in Codecov by Sentry. |
clean up outdated txs
* refactor: daily statistic generator use attr logic concern Signed-off-by: Miles Zhang <[email protected]> * test: fix test Signed-off-by: Miles Zhang <[email protected]> * feat: add uniq index to daily statistic Signed-off-by: Miles Zhang <[email protected]> * fix: filter commited tx when we generate daily statistic Signed-off-by: Miles Zhang <[email protected]> * feat: filter transactions_count with committed status Signed-off-by: Miles Zhang <[email protected]> --------- Signed-off-by: Miles Zhang <[email protected]>
RAILS_ENV=production bundle exec rake migration:update_cell_type
RAILS_ENV=production bundle exec rake migration:update_token_transfer_action
|
No description provided.